first principle derivative